
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生管理系统 - 首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
        }

        .header {
            background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
            color: white;
            padding: 20px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
        }

        .user-info {
            display: flex;
            align-items: center;
            position: relative;
        }

        .user-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }

        .logout-btn {
            margin-left: 15px;
            padding: 5px 10px;
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

        .main-content {
            padding: 30px 0;
        }

        .welcome-card {
            background: white;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
        }

        .welcome-title {
            font-size: 24px;
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .welcome-text {
            color: #7f8c8d;
            line-height: 1.6;
        }

        .module-section {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 20px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }

        .module-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .module-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            text-align: center;
        }

        .module-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .module-icon {
            font-size: 36px;
            margin-bottom: 15px;
            color: #3498db;
        }

        .module-title {
            font-size: 18px;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .module-desc {
            font-size: 14px;
            color: #7f8c8d;
        }

        .footer {
            text-align: center;
            padding: 20px 0;
            color: #7f8c8d;
            font-size: 14px;
            border-top: 1px solid #eee;
            margin-top: 50px;
        }

        @media (max-width: 768px) {
            .module-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<header class="header">
    <div class="container">
        <div class="header-content">
            <div class="logo">学生管理系统</div>
            <div class="user-info">
                <img src="https://via.placeholder.com/40" alt="用户头像">
                <span>管理员</span>
                <button class="logout-btn" onclick="logout()">
                    <i class="fas fa-sign-out-alt"></i> 退出
                </button>
            </div>
        </div>
    </div>
</header>

<main class="main-content">
    <div class="container">
        <div class="welcome-card">
            <h1 class="welcome-title">欢迎使用学生管理系统</h1>
            <p class="welcome-text">
                本系统是一个基于SpringBoot的Web综合性学生信息管理平台，主要服务于学校教务管理，
                包含用户管理、学生信息管理、教师信息管理、课程管理等核心功能模块。
            </p>
        </div>

        <!-- 用户权限管理模块 -->
        <div class="module-section">
            <h2 class="section-title"><i class="fas fa-user-shield"></i> 用户权限管理</h2>
            <div class="module-grid">
                <div class="module-card" onclick="location.href='user_list.html'">
                    <div class="module-icon"><i class="fas fa-users"></i></div>
                    <h3 class="module-title">用户管理</h3>
                    <p class="module-desc">管理系统用户账号、权限和状态</p>
                </div>
                <div class="module-card" onclick="location.href='role_list.html'">
                    <div class="module-icon"><i class="fas fa-user-tag"></i></div>
                    <h3 class="module-title">角色管理</h3>
                    <p class="module-desc">创建、编辑和分配系统角色</p>
                </div>
                <div class="module-card" onclick="location.href='test.html'">
                    <div class="module-icon"><i class="fas fa-list"></i></div>
                    <h3 class="module-title">菜单权限管理</h3>
                    <p class="module-desc">管理系统菜单和权限标识</p>
                </div>
            </div>
        </div>

        <!-- 学生管理模块 -->
        <div class="module-section">
            <h2 class="section-title"><i class="fas fa-user-graduate"></i> 学生管理</h2>
            <div class="module-grid">
                <div class="module-card" onclick="location.href='stu_list.html'">
                    <div class="module-icon"><i class="fas fa-id-card"></i></div>
                    <h3 class="module-title">学生信息管理</h3>
                    <p class="module-desc">维护学生基本信息和学籍状态</p>
                </div>
                <!--<div class="module-card" onclick="location.href=''">
                    <div class="module-icon"><i class="fas fa-book-open"></i></div>
                    <h3 class="module-title">学生选课管理</h3>
                    <p class="module-desc">管理学生选课、退课和课表</p>
                </div>-->
            </div>
        </div>

        <!-- 教师管理模块 -->
        <div class="module-section">
            <h2 class="section-title"><i class="fas fa-chalkboard-teacher"></i> 教师管理</h2>
            <div class="module-grid">
                <div class="module-card" onclick="location.href='teach_list.html'">
                    <div class="module-icon"><i class="fas fa-user-tie"></i></div>
                    <h3 class="module-title">教师信息管理</h3>
                    <p class="module-desc">维护教师基本信息和任课安排</p>
                </div>
                <!-- <div class="module-card" onclick="location.href=''">
                     <div class="module-icon"><i class="fas fa-tasks"></i></div>
                     <h3 class="module-title">教学任务管理</h3>
                     <p class="module-desc">管理教师授课任务和学生名单</p>
                 </div>-->
            </div>
        </div>

        <!-- 课程管理模块 -->
        <div class="module-section">
            <h2 class="section-title"><i class="fas fa-book"></i> 课程管理</h2>
            <div class="module-grid">
                <div class="module-card" onclick="location.href='cour_list.html'">
                    <div class="module-icon"><i class="fas fa-book"></i></div>
                    <h3 class="module-title">课程基础管理</h3>
                    <p class="module-desc">维护课程信息和排课安排</p>
                </div>
                <!--<div class="module-card" onclick="location.href=''">
                    <div class="module-icon"><i class="fas fa-clipboard-list"></i></div>
                    <h3 class="module-title">选课管理</h3>
                    <p class="module-desc">监控选课情况和冲突检测</p>
                </div>-->
            </div>
        </div>
    </div>
</main>

<footer class="footer">
    <div class="container">
        <p>©  学生管理系统 - 版权归七组所有</p>
    </div>
</footer>

<script>
    function logout() {
        // 这里可以添加退出前的确认对话框
        if(confirm('确定要退出系统吗？')) {
            // 跳转到登录页面
            window.location.href = 'login.html';
        }
    }
</script>
</body>
</html>